/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package pratica7;

/**
 *
 * @author diego
 */
public class Vertice implements Comparable<Vertice>{
    public String name;
    public Peso key;

    public Vertice(String name) {
        this.name = name;
    }

    @Override
    public int compareTo(Vertice other) {
        return Peso.compare(this.key, other.key);
    }
    
}
